<?php

$showurl = @file_get_contents('http://epguides.com/'.$getshow.'/');

if ($showurl) {

	//Parse and split up epguides content
	$subject = $showurl;
	$pattern = '#(<ul>)([\D\d\s]+</ul>)#iU';
	
	preg_match($pattern, $subject, $matches);
	
   	$cast = $matches[2];
	$cast = str_replace('<p></p>', '', $cast);
	$cast = addslashes($cast);
}
?>